import { createWebHistory, createRouter } from 'vue-router'
import home from '../vise/home/home.vue'
import homelist from '../vise/home/homelist.vue'
import Login from '../vise/login.vue'

const routes = [
    { path: '/', redirect: '/home' },
  { path: '/home', component:home,
    children:[
        {
            path:'homelist',
            component:homelist
        }
    ]
    },
  { path: '/login', component:Login  },
]


export const router = createRouter({
  history: createWebHistory(),
  routes,
})